<%@ Page Language="C#" AutoEventWireup="true" Inherits="Test_Controls" Codebehind="Controls.aspx.cs" %>

<%@ Register Assembly="Pampa.WebControls" Namespace="Pampa.WebControls" TagPrefix="cc1" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript">
    
    function getItems(selectorId, value, maxtam)
    {
        var response = Test_Controls.GetList(value);
        var doc = Common.stringtoXML(response.value);
		Selector_Fill(selectorId, doc);       
	}

    </script>    
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <cc1:DatePicker ID="DatePicker1" runat="server" Width="248px" />
        <br />
        
        <cc1:DatePicker ID="DatePicker2" runat="server" Type="MonthYear" Width="247px" />
        <br />
        
        <cc1:DatePicker ID="DatePicker3" runat="server" Width="247px" />
        <br />
                
        <cc1:Selector ID="Selector1" runat="server" Width="121px" DataHandler="getItems"/>
        <br />
        
        <cc1:ComboList ID="ComboList1" runat="server" Width="150px" />
        <br />
        
        <cc1:ClientButton ID="ClientButton3" runat="server" Focuseable="true"/>
        <br />
        <br />

        <cc1:CollapsablePanel ID="CollapsablePanel1" runat="server" Height="132px" Width="443px">
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        </cc1:CollapsablePanel>
        <br />
        
        <cc1:FloatingWindow ID="FloatingWindow1" runat="server" Height="112px" Width="252px">
            <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
        </cc1:FloatingWindow>        
        <br />
    </div>        
    </form>
</body>

<script type="text/javascript">

// Common.addEventListener(window, "load", function(){alert("hola")}, false);
// document.body.onload = new Function("alert('hola')");
// window.attachEvent("onload", function(){alert("hola")}); 

window.document.on.oneyup", function(){alert("hola")}, false);

</script>
</html>
